'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.get('/say', controller.home.say);
  router.get('/login', controller.home.login);
  router.post('/getAccount', controller.home.getAccount);
  router.get('/getUser', controller.home.getUser);
  router.post('/getDataById', controller.home.getDataById);
  router.post('/addUser', controller.home.addUser);
  router.post('/delUserById', controller.home.delUserById);
  router.post('/edit', controller.home.edit);
};
